{% extends "tj3/tj3.html" %}


{% block content  %} 
<h2>Resource</h2>
{{ resource }}, {{ resource.work_limit }}


<form action="." method="post" enctype="multipart/form-data">
<h2>New timeoff</h2>
<table>
{{ timeoff_formset.management_form }}
{{ timeoff_formset }}
</table>

<input type="submit" name="command" value="Create" class="button" />

<!--- list timeoffs -->
<h2>History</h2>
<table>
<thead>
<th>START DATE<th>END DATE<th>MEMO
</thead>
<tbody>
{% for t in timeoffs %}
	<td>{{ t.start }}
	<td>{{ t.end }}
	<td>{{ t.memo }}
{% endfor %}
</tbody>
</table>

</form>
 {% endblock content %}
